import { DataTypes } from 'sequelize';
import sequelize from '../config/db.config.js';

const Common = sequelize.define('Common', {
  groupId: {
    type: DataTypes.INTEGER,
    primaryKey: true,
    field: 'group_id'
  },
  groupName: {
    type: DataTypes.STRING(50),
    allowNull: false,
    field: 'group_name'
  },
  itemId: {
    type: DataTypes.INTEGER,
    primaryKey: true,
    field: 'item_id'
  },
  itemName: {
    type: DataTypes.STRING(50),
    allowNull: false,
    field: 'item_name'
  }
}, {
  tableName: 'common_lookup',
  timestamps: false
});

export default Common; 